<div class="c<?php print $this->v('position');?>">
	<a href="<?php print get_permalink($this->v('id'));?>"><?php print get_the_title($this->v('id'));?></a>
	<span href="<?php print get_permalink($this->v('id'));?>" id="<?php print $this->v('id');?>">
		<h2><?php print get_the_title($this->v('id'));?></h2>
		<h3><?php print get_post_meta($this->v('id'),'#subtitle',true);?></h3>
		<div class="rating" for="<?php print $this->v('id');?>" votes="<?php print (int)get_post_meta($this->v('id'),'#votes',true);?>" score="<?php print $score = (float)get_post_meta($this->v('id'),'#score',true);?>">
			<div class="social">
				<a class="addthis_button_compact" rel="nofollow" title="<?php print htmlspecialchars(get_the_title($this->v('id')),ENT_QUOTES);?>" url="<?php print get_permalink($this->v('id'));?>" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=xa-50224385051f1c56">Add This</a>
			</div>
			<div class="stars">
				<?php for ($i=1;$i<=5;$i++):?>
				<div<?php if (round($score,0) >= $i):?> class="x"<?php endif;?>></div>
				<?php endfor;?>
			</div>
		</div>
		<div class="toggle">
			<div class="button"></div>
		</div>
		<div class="image">
		<?php
			if(count($attachments = get_children(
				array(
					'post_parent'=>$this->v('id'),
					'post_type'=>'attachment',
					'post_mime_type'=>'image'
				)
			))):
				foreach ( $attachments as $id => $att ):
					$img_bkg = wp_get_attachment_image_src($id,(in_array($this->v('position'), array(1,12))?'large':'medium'),ENT_QUOTES);
		?>
		<div class="img<?php if (!isset($setActive)){print ' active'; $setActive=true;}?>" style="background-image:url('<?php print htmlentities($img_bkg[0]);?>');"></div>
		<?php	
				endforeach;
			endif;
		?>
			<div class="prev"></div><div class="next"></div>
			<div class="text"><?php $excerpt = get_the_excerpt(); print (strlen($excerpt)==0?'No excerpt defined.':$excerpt);?></div>
		</div>
	</span>
</div>